package com.hunanwenli.mapper;

import com.hunanwenli.entity.ShopGoods;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ShopGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ShopGoods record);

    int insertSelective(ShopGoods record);

    ShopGoods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ShopGoods record);

    int updateByPrimaryKey(ShopGoods record);

    int updateInventoryDecrement(Long id);

    List<ShopGoods> selectAllGoods();
}